from  tkinter import  *
window = Tk()
x = int(input())
y = int(input())
n = int(input())
xm = x  + 30 * n
ym = y + 20 * n
window.geometry('500x500')
canvas = Canvas(bg = 'white', width = 500, height = 500)
canvas.pack(anchor=CENTER, expand = 1)
if 0 <= xm <= 500 and 0 <= ym <= 500:
    canvas.create_polygon(x, y, x + 10 * n, y, x + 10 * n, y + 10 * n,  x + 20 * n,  \
                      y + 10 * n, x + 20 * n, y, x + 30 * n, y, x + 30 * n, y + 20 * n, \
                      x, y + 20 * n)
else:
    print('Размер фигуры превышает размер поля')
window.mainloop()
